package com.github.pig.wxapi.common.enums;

import com.baomidou.mybatisplus.enums.IEnum;

import java.io.Serializable;
 /**
  * @author J神
  * @date 2018/5/11
  **/
public enum OrderStatus implements IEnum{
    WAIT_DISTRIBUTE("待分配",0),
     DISTRIBUTED("已分配",1),
     DELIVERY("配送中",2),
     DELIVERY_SUCCESS("配送成功",3),
     DELIVERY_FAIL("配送失败",4),
     GATHERING_SUCCESS("确认收款",5),
     ;
    Integer value;
    String  code;
    OrderStatus(String code,Integer value){
        this.value=value;
        this.code=code;
    }
    @Override
    public Serializable getValue() {
        return value;
    }
}
